﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using Volo.Abp.Domain.Entities;

namespace CommonManagement
{
    /// <summary>
    /// 区域类
    /// </summary>
    public class Area : Entity<int>
    {
        /// <summary>城市编号</summary>
        public int CityId { get; protected set; }

        /// <summary>名称</summary>
        public string Name { get; protected set; }

        /// <summary>城市</summary>
        [ForeignKey("CityId")]
        public City City { get; protected set; }

        /// <summary>位置集合</summary>
        public IList<Location> Locations { get; protected set; }

        private Area() { }
    }
}